<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <title>Title</title>
</head>
<body>
    <div id="app">

        <!--事件冒泡-->
        <div style="width: 100px;height: 100px;background: green" @click="clickMe('div')">
            <input type="button" value="点我" @click.stop="clickMe('btn')">
        </div>
    </div>

    <script src="./node_modules/vue/dist/vue.js"></script>
    <script>
        var vm=new Vue({
            el:"#app",
            data:{
                name:"周合星",
                num:1
            },
            methods:{
                clickMe:function (val) {
                    alert(val);
                }
            }
        })
    </script>
</body>
</html>